package main

import "fmt"

type test1 struct {
	name string
}

type test2 struct {
	age int
}

//多重继承 test3同时继承test1和test2两个结构体
type test3 struct {
	test1
	test2
	id int
}

func main() {
	var a test3

	a.name = "zs"
	a.age = 18
	a.id = 1

	fmt.Println(a)
}
